#include "pch.h"
#include "framework.h"
#include <time.h>
#include <string>
#include <stdlib.h>

#include "TcalcFuncSets.h"
#include "Stock.h"

using namespace std;


void displayIdx(int DataLen, float* pfOUT, float* pfINa, float* pfINb, float* pfINc) {
	for (int i = DataLen; i >= 0; i--) {
		pfOUT[i] = i;
	}
}


PluginTCalcFuncInfo g_CalcFuncSets[] =
{
	{0, (pPluginFUNC)&displayIdx},
	{1, (pPluginFUNC)&drawSegmentWithHLC},
	{2, (pPluginFUNC)&drawCenterHighWithHLC},
	{3, (pPluginFUNC)&drawCenterLowWithHLC},
	{4, (pPluginFUNC)&drawSegmentWithC},
	{5, (pPluginFUNC)&drawCenterHighWithC},
	{6, (pPluginFUNC)&drawCenterLowWithC},
	{7, (pPluginFUNC)&drawBearTrap},
	{8, (pPluginFUNC)&drawTurn}
};


BOOL RegisterTdxFunc(PluginTCalcFuncInfo** pFun)
{
	if (*pFun == NULL)
	{
		(*pFun) = g_CalcFuncSets;
		return TRUE;
	}
	return FALSE;
}